<ul>
    <li
        *ngFor="let menu of menus; let i = index"
        [ngStyle]="{ 'background-color': backgroundColor }"
    >
        <a
            href="#"
            [ngStyle]="{ color: i === selectedIndex ? titleActiveColor : titleColor }"
            (click)="handleSelection(i)"
        >
            {{ menu.title }}
        </a>
        <span class="indicator" *ngIf="i === selectedIndex"></span>
    </li>
</ul>
